'use strict';

const helper = require('../extend/helper');
const Service = require('egg').Service;

class HomeService extends Service {
  async list() {
    const { ctx } = this;
    const formatTime = helper.relativeTime;
    // const isIOS = ctx.isIOS();

    const result = {
      isIOS: false,
      formatTime,
    };

    return result;
  }
}

module.exports = HomeService;
